//
// Created by Symps on 2025/9/15.
//

#include "../../include/ArrayList.h"

int main() {
    ArrayList<int> list;
    // list.addHead(1);
    // list.addHead(2);
    // list.addHead(3);
    // list.addHead(4);
    // list.addHead(5);
    for (int i = 0; i < 10; i++) {
        list.addHead((i + 1));
    }
    cout << list << endl;
    // cout << list.size() << endl;
    // cout << list.capacity() << endl;
    list.add(11);
    cout << list << endl;
    // cout << list.capacity() << endl;
    list.insert(12, 3);
    cout << list << endl;
    list.insert(13, 0);
    cout << list << endl;
    list.insert(14, list.size());
    cout << list << endl;
    list.remove(list.size() - 1);
    cout << list << endl;
    list.remove(0);
    cout << list << endl;
    list.remove(3);
    cout << list << endl;
    list.remove();
    cout << list << endl;
    cout << list.find(8) << endl;
    cout << list.find(11) << endl;
    const auto list2 = list;
    cout << list2 << endl;
    const auto list3(list2);
    cout << list3 << endl;
    return 0;
}
